Introduction | General Helpline Q&A Directory 

Make a CD-R autorun

When I put a disc into my CD-ROM drive, it launches a program automatically. I'd like this to happen when I insert CD-Rs that I create myself. How can I do this?

It's easier than you might think. You just have to add a text file named autorun.inf to the CD's root directory. You can create autorun.inf in Notepad, another text editor, or any other program that can create plain ASCII text.

The first line of the file contains only the text [autorun]. The text you enter after that depends on what you want the CD to do. If you want it to run a program, type open=. If you want Windows Explorer to open to the disc automatically, your file should read:

[autorun]
open=explorer.exe /n,/e,.

Yes, as strange as it may seem, that last line ends with a comma, then a full stop. And don't forget to type a space before the first slash. The 'n' in the second line of text indicates to Explorer that it should open in a new window, while the 'e' tells Explorer to open in expanded view, which shows your folders in the lefthand pane. You'll find a list of all the commands you can use in this file in Microsoft's online library
 © 2002 PC Advisor